package com.qqtech.qquan.pub.service;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import com.qqtech.core.frame.service.BaseService;
import com.qqtech.qquan.pub.model.PubReport;
import com.qqtech.qquan.pub.model.PubReportQuery;
import com.qqtech.qquan.pub.model.PubReportVo;

public interface PubReportService extends BaseService<PubReport> {
	/**
	 * 处理举报信息
	 * @param userId
	 * @param reportId
	 * @param bizzType 业务类型
	 * @param bizzId
	 * @return 
	 */
	String handleDisposeReport(Integer userId , Integer reportId, String bizzType, Integer bizzId);

	/**
	 * 忽略举报信息
	 * @param userId
	 * @param reportId
	 * @param bizzType 业务类型
	 * @param bizzId 业务Id
	 */
	void handleIgnoreReport(Integer userId , Integer reportId, String bizzType, Integer bizzId);

	/**
	 * 获取被举报内容的发布人ID
	 * @param bizzId
	 * @param bizzType
	 * @return
	 */
	Integer getBeUserId(int bizzId,String bizzType);

	/**
	 * 后台查询列表--分页
	 * 
	 * @param query
	 * @param pageable
	 * @return
	 */
	Page<PubReportVo> queryPageListAdmin(PubReportQuery query, Pageable pageable);
}